package newx.com.control.list
{
	import flash.events.Event;
	
	public class NxListEvent extends Event
	{
		public static const LIST_CLICK	:String		=	"NX_LIST_CLICK";
		
		public static const ITEM_ROLLOVER	:String		=	"NX_LIST_Item_RollOver";
		
		public static const ITEM_ROLLOUT	:String		=	"NX_LIST_Item_RollOut";
		
		private var _itemData				:Object;
		
		private var _id:int=-1;//单击的Item的位置，从第一条id=0，-1为没有获取到。
		
		public function NxListEvent(type:String, itemData:Object,bubbles:Boolean=false, cancelable:Boolean=false)
		{
			_itemData	=	itemData;
			super(type, bubbles, cancelable);
		}
		
		public function get itemData():Object
		{
			return _itemData;
		}
		
		
		public function get id():int
		{
			return _id;
		}
		
		public function set id(value:int):void
		{
			_id=value;
		}
	}
}